package com;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class Main {
    public static void main(String[] args) {

        ApplicationContext context = new AnnotationConfigApplicationContext("com");
      /*  EmpService service = context.getBean(EmpService.class);
        service.insert();*/


      /*  EmpServiceImpl service2 = context.getBean(EmpServiceImpl.class);
        service2.test();*/

    /*    DbConfig dbConfig = context.getBean(DbConfig.class);
        dbConfig.testEnv();*/

        A a = context.getBean(A.class);
        System.out.println(a);
    }


}
